Assign contact
PATCH/baskets/:id/assign-contact
Assigns the signed in contact to the basket. You must call this endpoint if the user signs in after basket creation, to ensure that the basket is associated with the correct contact and that the customer is not asked to enter unnecessary customer detail fields.
Request
Path Parameters
The id of the basket
Header Parameters
The API key for the given store
Responses
- 202
- 204
- 400
No content if the contact is assigned and there are no providers in the basket that support contacts on their end. If there are providers that support contacts, then a notification response will be returned that will be completed once the provider systems have been updated with the contact details. If there are any problems encountered trying to assign the contact, then a problem details response will be returned.
- application/json
- Schema
- Example (from schema)
Schema
The id of a notification that represents this asynchronous request. OneBasket will be processing the request in the background, and upon completion this notification will be updated with the result.
{
"notificationId": "string"
}
No content if the contact is assigned and there are no providers in the basket that support contacts on their end. If there are providers that support contacts, then a notification response will be returned that will be completed once the provider systems have been updated with the contact details. If there are any problems encountered trying to assign the contact, then a problem details response will be returned.
No content if the contact is assigned and there are no providers in the basket that support contacts on their end. If there are providers that support contacts, then a notification response will be returned that will be completed once the provider systems have been updated with the contact details. If there are any problems encountered trying to assign the contact, then a problem details response will be returned.
- application/json
- Schema
- Example (from schema)
Schema
The type of the problem. See the documentation for each problem type to see what other properties (extensions) will be present on the problem details for that type.
The title of the problem
Further details on the problem that occurred
The http status code for the problem if it is the result of a HTTP request. If the result of an asynchronous operation, this will not be present.
{
"type": "string",
"title": "string",
"detail": "string",
"status": 0
}